﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register src="../Shared/Header_Report.ascx" tagname="Header_Report" tagprefix="uc1" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title>工作量统计</title>
    <uc1:Header_Report ID="Header_Report1" runat="server" />
    <script type="text/javascript">
        $(function () {

            $.ajax({
                type: "POST",
                url: "/Report/LoadWorkLoadReport/",
                success: function (data) {
                    var maxY = getMaxY(data.series);
                    maxY = maxY + (5 - (maxY % 5));
                    drawChart('container', data.category, data.color, data.series, maxY, '消毒供应中心', data.worker+'的工作量统计', '操作流程', '数量(个)');
                },
                error: function () {
                    $.messager.alert('错误', '加载数据失败！', "error");
                }
            });           
        });      
               
    </script>
</head>
<body class="easyui-layout">
    <form id="form1" runat="server">
    <div region="center" style="padding: 5px;" border="false">
        <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto">
            
        </div>
    </div>
    </form>
</body>
</html>
